<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title> Sistema Financeiro </title>
	<div style="text-align: right;">
		<h:outputText value="#{usuarioMBean.loginUsuario}" style="font-weight: bold; margin-right: 20px"/>
		<a href="/Financeiro/j_spring_security_logout">Sair</a>
	</div>
</h:head>

<h:body>
	<h:form>
		<div>
			<center>
				<div>
					<h1>Sistema Financeiro</h1>
				</div>
				
				<h:messages />
			</center>
			
			<div align="center">
				<table>
					<tr>
						<td style="padding-right: 10px">
							<h:commandLink value="Index" action="#{grupoCategoriaContaMBean.menu}"/>
						</td>
						
						<td style="padding-right: 10px">
							<h:commandLink value="Minhas Contas" action="#{contasMBean.listar}"/>
						</td>
						
						<td style="padding-right: 10px">
							<h:commandLink value="Grupo de Categorias" action="#{grupoCategoriaContaMBean.listar}"/>
						</td>
						
						<td style="padding-right: 10px">
							<h:commandLink value="Categorias de Conta" action="#{categoriaContaMBean.listar}"/>
						</td>
					</tr>
				</table>
			</div>	
			
			<div align="center">
				<br/>
				<ui:insert name="conteudo">
				
				</ui:insert>
			</div>
		</div>
	</h:form>
</h:body>
</html>